<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="p" uri="http://www.supcon.com/tags/tinyportal"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<p:portlet id="LoginPortlet" styleClass="portletContainer" title="Login Portlet">
	<p:handler event="loginEvent">
		<s:action name="loginHandler!login" namespace="/" flush="false"/>
	</p:handler>
	<p:handler event="logoutEvent">
		<s:action name="loginHandler!logout" namespace="/" flush="false"/>
	</p:handler>
	
	<p:reload/>
	
	<p:prerender />
	<s:if test="#session.USER == null">
		<s:include value="loginForm.jsp" />
	</s:if>
	<s:else>
		<s:include value="logoutForm.jsp" />
	</s:else>
</p:portlet>
